home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
t3_1
/
nexttsrc.lha
/
nexttsources
/
nexttsystem
/
float.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-23
|
473b
|
37 lines
fladd(z,x,y)
double *x,*y,*z;
{ *z = *x + *y;}
flsubtract(z,x,y)
double *x,*y,*z;
{ *z = *x - *y;}
flmultiply(z,x,y)
double *x,*y,*z;
{ *z = *x * *y;}
fldivide(z,x,y)
double *x,*y,*z;
{ *z = *x / *y;}
flless(x,y)
double x,y;
{ if (x < y) return 1; return 0;}
flequal(x,y)
double x,y;
{ if (x == y) return 1; return 0;}
flgreater(x,y)
double x,y;
{ if (x > y) return 1; return 0;}
fix(x)
double x;
{ return x;}
double flote(x)
long x;
{ return x;}